package cn.edu.neusoft.wuguangsheng.market.model;

import cn.edu.neusoft.wuguangsheng.market.bean.FoodByIdBean;
import cn.edu.neusoft.wuguangsheng.market.iface.FoodByIdIface;
import cn.edu.neusoft.wuguangsheng.market.listener.TListener;
import cn.edu.neusoft.wuguangsheng.market.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

/**
 * Created by little on 2018/4/12.
 */

public class FoodByIdModel extends RetrofitBaseModel implements FoodByIdIface<FoodByIdBean>{
    private AllService allService;
    private Retrofit retrofit;
    public FoodByIdModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void getFoodByIdMessage(String fid, TListener<FoodByIdBean> tListener) {
       Call<FoodByIdBean> call=allService.showFoodById(fid);
        callenqueue(call,tListener);
//        Call<List<FoodByShopBean>> call=allService.showFoodByShoplist(mrid);
//        callenqueueList(call,listListener);
    }

}
